import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import admin from './modules/admin'
import user from './modules/user'
import article from './modules/article'
import product from './modules/product'
import media from './modules/media'
import banner from './modules/banner'
import order from './modules/order'
import packages from './modules/package'
import coupon from './modules/coupon'
import config from './modules/config'
import permission from './modules/permission'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    admin,
    user,
    product,
    media,
    banner,
    article,
    packages,
    coupon,
    config,
    order,
    permission
  },
  getters
})

export default store
